﻿<controls:MetroWindow x:Class="QuickMail.View.Windows.CommonSettingsWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
        Title="Setting the program" Height="350" Width="500" 
        FontSize="14"  FontWeight="DemiBold" ResizeMode="NoResize" 
        WindowStartupLocation="CenterOwner">
    <Border BorderThickness="2" BorderBrush="#41B1E1">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            
            <Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>

                <TextBlock Grid.Row="0" Grid.Column="0" x:Name="SelectLangTextBlock" Text="Choose your language:" Margin="5" VerticalAlignment="Center"/>
                <ComboBox Grid.Row="0" Grid.Column="1" x:Name="LanguageComboBox" Margin="5"/>

                <TextBlock Grid.Row="1" Grid.Column="0" x:Name="PeriodTextBlock" Text="Checks mails period (sec):" Margin="5" VerticalAlignment="Center"/>
                <TextBox Grid.Row="1" Grid.Column="1" x:Name="PariodTextBox" Text="30" Margin="5"/>

                <TextBlock Grid.Row="2" Grid.Column="0" x:Name="MaxLetterSizeTextBlock" Text="Max size of letter (MB):" Margin="5" VerticalAlignment="Center"/>
                <TextBox Grid.Row="2" Grid.Column="1" x:Name="MaxLetterSizeTextBox" Text="20" Margin="5" 
                         ToolTip="Limit letter size from 1 to 500 MB (see. configure your mail server)"/>

                <TextBlock Grid.Row="3" Grid.Column="0" x:Name="ShowNotificationsTextBlock" 
                           Text="Show notifications:" Margin="5" VerticalAlignment="Center"/>
                <CheckBox Grid.Row="3" Grid.Column="1" x:Name="ShowNotificationsCheckBox" Margin="5"/>
                
                <TextBlock Grid.Row="4" Grid.Column="0" x:Name="SignedLettersTextBlock" Text="Signed of letters:" Margin="5" VerticalAlignment="Center"/>
                <TextBox Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" x:Name="SignedLettersTextBox" Margin="5"/>
            </Grid>

            <Button Grid.Row="1" Grid.Column="0" x:Name="ApplyButton" Content="Apply" Width="100" Height="30" Margin="5"
                HorizontalAlignment="Right" IsDefault="True" Click="Apply_OnClick"/>
            <Button Grid.Row="1" Grid.Column="1" x:Name="CancelButton" Click="CancelButton_OnClick"
                    Content="Cancel" Width="100" Height="30" Margin="5" HorizontalAlignment="Right" IsCancel="True"/>
        </Grid>
    </Border>
</controls:MetroWindow>
